package com.bh.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bh.common.annotation.Dict;
import com.bh.common.annotation.Excel;
import com.bh.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 员工积分对象 bh_user_score
 *
 * @author slx
 * @date 2023-07-15
 */
@TableName("bh_user_score")
@ApiModel(value = "员工积分对象", description = "员工积分对象")
@EqualsAndHashCode(callSuper = true)
@Data
public class BhUserScore extends BaseEntity {
    

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户
     */
    @Dict(dictTable = "sys_user", dictLabel = "nick_name", dictValue = "user_id")
    @ApiModelProperty("用户")
    @Excel(name = "用户")
    private Long userId;

    /**
     * 单位ID
     */
    @Dict(dictTable = "sys_dept", dictLabel = "dept_name", dictValue = "dept_id")
    @ApiModelProperty("单位ID")
    @Excel(name = "单位ID")
    private Long deptId;

    /**
     * 事件类型
     */
    @Dict(dictValue = "event_type")
    @ApiModelProperty("事件类型")
    @Excel(name = "事件类型")
    private String eventType;

    /**
     * 事件详情
     */
    @ApiModelProperty("事件详情")
    @Excel(name = "事件详情")
    private String eventContent;

    /**
     * 分数
     */
    @ApiModelProperty("分数")
    @Excel(name = "分数")
    private Double score;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("deptId", getDeptId())
                .append("eventType", getEventType())
                .append("eventContent", getEventContent())
                .append("score", getScore())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
